package com.qiu.aiteacherbacker.exception;

import com.qiu.aiteacherbacker.common.ErrorCode;

public class ExceptionUtils {


    public static void error(ErrorCode errorCode) {
        throw new BusinessException(errorCode);
    }

    public static void error(ErrorCode errorCode, String description) {
        throw new BusinessException(errorCode, description);
    }

    public static void error(int errorCode, String message, String description) {
        throw new BusinessException(errorCode, message, description);
    }

}
